package com.deer.wms.inventory.dao;

import com.deer.wms.inventory.model.stockTake.StockTakeLog;
import com.deer.wms.project.root.core.mapper.Mapper;
import com.deer.wms.project.root.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StockTakeLogMapper extends Mapper<StockTakeLog>,SuperMapper<StockTakeLog> {

    //根据盘点下架任务号查询盘点记录
    List<StockTakeLog> findList(@Param("wareId") Integer wareId, @Param("cellCode") String cellCode);

    //根据盘点任务号查询盘点差异表
    List<StockTakeLog> findResidualList(@Param("wareId") Integer wareId, @Param("stockMasterCode") String stockMasterCode);

    //根据盘点任务号查询盘点差异表
    List<StockTakeLog> findProfitOrLossList(@Param("wareId") Integer wareId, @Param("stockMasterCode") String stockMasterCode,
                                            @Param("profitOrLoss") Integer profitOrLoss);
}
